package com.xinzhi.dao;

import com.xinzhi.pojo.BankCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface InsertDao {

    /**
     * 插入数据
     * @param phone
     * @param registTime
     */
    int addPhone(@Param("phone") String phone, @Param("registTime") LocalDateTime registTime,@Param("loginTime") LocalDateTime loginTime);
    /**
     * 查询银行卡信息
     *
     */
     List<BankCard> selectBankCard(String phone);

    /**
     * 注销用户
     * @param phone
     *
     */
      int deletePhone(String phone);
}
